put StandardFile("get:This One!", "TEXT", "STAK") into cd fld "Path"
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=13 top=201 right=221 bottom=141
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put StandardFile("put") into cd fld "Path"
end mouseUp
-- part 12 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=13 top=223 right=243 bottom=405
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put StandardFile("put:Hit Me!", "Need file here…", "Enter a name:") into cd fld "Path"
end mouseUp
-- part 13 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=13 top=246 right=266 bottom=141
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put StandardFile("dir") into cd fld "Path"
end mouseUp
-- part 14 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=13 top=268 right=288 bottom=301
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put StandardFile("dir:Choose", "Choose Current:") into cd fld "Path"
end mouseUp
-- part 16 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=14 top=61 right=111 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 17 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=317 top=21 right=120 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 8192
-- line height: 12
-- part name:
-- part 18 (button)
-- low flags: 00
-- high flags: 8001
-- rect: left=464 top=247 right=295 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go home
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 8001
-- rect: left=464 top=153 right=201 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 2478 / 2478
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
set the visible of cd field "Help" to not the visible of card field "Help"
end mouseUp
-- part 21 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=9 top=133 right=155 bottom=222
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 768
-- line height: 18
-- part name:
-- part 20 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=54 top=106 right=240 bottom=435
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
set the visible of me to false
end mouseUp
-- part contents for card part 8
----- text -----
StandardFile("get")
-- part contents for card part 9
----- text -----
miniQisk:Programming:XCMD & XFCN ƒ:Apple Sound.c
-- part contents for card part 10
----- text -----
StandardFile("get:This One!", "TEXT", "STAK")
-- part contents for card part 11
----- text -----
StandardFile("put")
-- part contents for card part 12
----- text -----
StandardFile("put:Hit Me!", "Need file here…", "Enter a name:")
-- part contents for card part 13
----- text -----
StandardFile("dir")
-- part contents for card part 14
----- text -----
StandardFile("dir:Choose", "Choose Current:")
-- part contents for card part 16
----- text -----
This stack contains StandardFile XFCN v2.
FreeWare © Nigel Perry, 1990. No commercial use (includes ShareWare) without permission.
-- part contents for card part 17
----- text -----
Nigel Perry
Department of Computing
Imperial College of Science, Technology and Medicine
180, Queens Gate
London SW7
England
Email: np@doc.ic.ac.uk
-- part contents for card part 20
----- text -----
The XCFN consists of three resources; XFCN "StandardFile", DITL "GetDir" -3969, and DLOG "GetDir" -3969. All three must be in your stack for StandardFile() to work. The DLOG/DITL are accessed by NUMBER and so their ids must not be changed (-3969 suggests it is owned by the standard file package…). The XFCN is written in Think C 3.0 with asm{} statements to decrease code size (I only have 1M so I try to make all my XFCN/XCMDs as small as possible!).